package main

import (
	"fmt"
	"git.oschina.net/YPTArch/auth/sys/redis"
	"os"
	"git.oschina.net/YPTArch/auth/sys/logs"
	"git.oschina.net/YPTArch/auth/sys/config"
)


func init()  {
	//日志
	logs.NewLog()
	//配置
	config.Conf = new(config.Config)
	if err := config.LoadConfig(); err != nil {
		os.Exit(1)
	}
	//redis
	redis.InitRedis()
}

func main()  {
	conn := redis.GetRedis()
	defer conn.Close()
	//redis操作
	v, err := conn.Do("SET", "pool", "test")
	if err != nil {
		fmt.Println("=================")
		return
	}
	fmt.Println(v)
}







